.attachment-dropdown {
  display: inline-block;
  width: 100%;
}

.attachment-dropdown__select {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.attachment-dropdown__select:hover {
  border-color: #999;
}

.attachment-dropdown__select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.attachment-dropdown__empty {
  color: #999;
  font-size: 13px;
}

.attachment-dropdown__single-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.attachment-dropdown__file-name {
  flex: 1;
  font-size: 13px;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* 允许 flex 子元素缩小 */
}

.attachment-dropdown__preview-btn {
  padding: 4px 12px;
  border: 1px solid #4a90e2;
  border-radius: 4px;
  background-color: #4a90e2;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.attachment-dropdown__preview-btn:hover {
  background-color: #357abd;
  border-color: #357abd;
}

.attachment-dropdown__preview-btn:active {
  background-color: #2a6ba0;
  border-color: #2a6ba0;
}

.attachment-dropdown__preview-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

